import Layout from '@/layout'

const navSystem = [
    {
        path: '/system',
        name: 'system:content',
        redirect: '/system/user',
        component: Layout,
        meta: {
            title: '系统管理',
            icon: 'el-icon-table iconfont',
            sign: 'system'
        },
        children: [
            {
                path: 'user',
                name: 'user',
                component: () => import('@/views/system/user/index'),
                meta: {title: '用户管理', sign: 'system:user:init'}
            },
            {
                path: 'role',
                name: 'role',
                component: () => import('@/views/table/complex-table'),
                meta: {title: '角色管理', sign: 'system:role:init'}
            },
            {
                path: 'permission',
                name: 'permission',
                component: () => import('@/views/table/complex-table'),
                meta: {title: '菜单管理', sign: 'system:permission:init'}
            }
        ]
    },
    {
        path: '/monitor',
        name: 'monitor:content',
        redirect: '/monitor/loginlog',
        component: Layout,
        meta: {
            title: '系统监控',
            icon: 'el-icon-table iconfont',
            sign: 'monitor'
        },
        children: [
            {
                path: 'loginlog',
                name: 'loginlog',
                component: () => import('@/views/monitor/loginlog/index'),
                meta: {title: '登录日志', sign: 'monitor:loginlog:init'}
            },
            {
                path: 'operlog',
                name: 'operlog',
                component: () => import('@/views/monitor/operlog/index'),
                meta: {title: '操作日志', sign: 'monitor:operlog:init'}
            }
        ]
    },
]


export default navSystem
